import pandas as pd
from sklearn.mixture import GaussianMixture
from sklearn.metrics import accuracy_score

data=pd.read_csv('HeightWeight.csv')
x=data.iloc[:,1:]
y=data.iloc[:,0]

gm=GaussianMixture(n_components=2,covariance_type='diag',random_state=33)
gm.fit(x)
h=gm.predict(x)

print(accuracy_score(y,h))